// 添加路由守卫
// src/router/auth-guard.js
export default (to, from, next) => {
  if (to.meta.requiresAdmin && !store.getters.isAdmin) next('/403')
}